<template>
  <div class="mainBox">
    <el-tabs v-model="activeTabsName" tab-position="left" >
      <el-tab-pane name="userGroups" label="用户组">
          <user-groups></user-groups>
      </el-tab-pane>
      <el-tab-pane name="users" label="用户">
        <users></users>
      </el-tab-pane>
      <el-tab-pane name="task" label="任务">
        <tasks></tasks>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>


<script>
import userGroups from '@/views/home/components/userGroups'
import users from '@/views/home/components/users'
import tasks from '@/views/home/components/tasks'
export default{
  data() {
    return {
      activeTabsName: 'task'
    }
  },
  components:{
    userGroups,
    users,
    tasks
  },
  created(){
  },
  methods: {
  },
  filters:{
    statusFilter(val){
      let text = '';
      if(val == '0'){
        text = '禁用'
      }else if(val == '1'){
        text = '启用'
      }
      return text;
    }
  }
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
  .mainBox{
    padding: 20px;
    margin-bottom: 20px;
  }
  .container {
    margin: 10px 10px 0 10px;
  }
</style>
